package ac.svn.accesscontrol.main;

import java.lang.reflect.InvocationTargetException;

import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import ac.notification.manager.NotificationRegistrar;
import ac.svn.accesscontrol.controller.SplashScreenController;
import ac.svn.accesscontrol.manager.InitManager;

public class SmartCMStarter 
{

	/**
	 * @param args
	 * @throws InvocationTargetException 
	 * @throws InterruptedException 
	 * @throws UnsupportedLookAndFeelException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws InterruptedException, InvocationTargetException, ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
		NotificationRegistrar.setLogging(true);
		try
		{
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch (Exception e) 
		{
			JOptionPane.showMessageDialog(null, "Unable to load Custom look and feel, Window might look different!", "Look n Feel load failed!", JOptionPane.WARNING_MESSAGE);
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		(new SplashScreenController()).showSplashScreen(3000, 1000);
		new InitManager();
	}

}
